package com.cjj.mybatis.object;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.Map;

/**
 * @Date 2021/11/03 11:54:56
 * @Created by BrownC_
 * @email ccc-ju@outlook.com
 */
public interface SuperMapper<T> extends BaseMapper<T> {

    /**
     * replace into
     *
     * @param entity 实体类
     * @return 主键ID
     */
    int replaceInto(T entity);

    /**
     * replace into by map
     *
     * @param columnMap 条件
     * @return 主键ID
     */
    int replaceIntoByMap(Map<String, Object> columnMap);

}
